﻿@model Weibo.Web.Models.MyMiniBlogModel
@{
    var border = "";
    if (Model.CurUserConfig.IsThemeDIY == 1)
    {
        ThemeDIY diy = Themes.GetThemeDIYByUID(Model.CurUser.ID);
        border = diy.BorderStyle + "Bg";
    }
    ViewData["curBorder"] = border;
}
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@{
    ViewBag.Title = "我的资料 XX微博-随时随地分享身边的新鲜事儿";
}
@section  cssInsert{
    <link rel="stylesheet" type="text/css" href="/Content/CSS/miniblog/index.css" />
    <link rel="stylesheet" type="text/css" href="@Model.CurSkinCss" />
    <link rel="stylesheet" type="text/css" href="/Content/CSS/miniblog/layer.css" />
    <link href="../../Content/CSS/history.css" rel="stylesheet" type="text/css" />
}
@section  jsInsert{
    <script src="/Scripts/JQP_HighLineInput.js" type="text/javascript"></script>
    <script type="text/javascript">
        var curBorder = "@border";
    </script>
    <script src="../../Scripts/js/myHistory.js" type="text/javascript"></script>
}
<div class="MIB_blogbody">
    <div class="MIB_mblogbgr @border">
        <div class="MIB_mblogbgl">
            <div class="mainR MIB_200 MIB_txtar MIB_linkar">
                @RenderPage("~/Views/Shared/_userInfoNoAvatar.cshtml")
                @RenderPage("~/Views/Shared/Wedget_MyInfo.cshtml")
                @RenderPage("~/Views/Shared/Wedget_MyTags.cshtml")
                @RenderPage("~/Views/Shared/Wedget_MyFan.cshtml")
                @RenderPage("~/Views/Shared/Wedget_MyFollow.cshtml")
                @RenderPage("~/Views/Shared/Wedget_MyTopic.cshtml")
            </div>
            <div id="profileL" class="mainL MIB_600 MIB_txtal MIB_linkal">
                <div id="profileHead" class="MIB_mbloghead">
                    <div id="profileHeadBg" class="MIB_mbloglist">
                        <div class="other_headpic">
                            <a href="#">
                                <img title="@Model.CurUser.NickName" src="@Model.CurUser.BigAvartar"></a></div>
                        <div class="other_info">
                            <div class="name MIB_txtal">
                                <span class="lf">@Model.CurUser.NickName</span> <span class="aboutwho rt"><a onclick="App.showPopMiniBlog();return false;"
                                    href="javascript:void(0)" id="publisher">
                                    <img align="absmiddle" title="我要发微博" class="small_icon saysomething" src="/Content/Image/transparent.gif">我要发微博</a></span>
                            </div>
                            <p>
                                @{
                                    if (string.IsNullOrEmpty(Model.CurUser.CustomSite))
                                    {
                                    <a href="@(BaseConfigs.GetWebDomain + "/" + Model.CurUser.ID)">@(BaseConfigs.GetWebDomain + "/" + Model.CurUser.ID)</a>
                                    }
                                    else
                                    {
                                    <a href="@(BaseConfigs.GetWebDomain + "/" + Model.CurUser.CustomSite)">@(BaseConfigs.GetWebDomain + "/" + Model.CurUser.CustomSite)</a>
                                    }
                                }
                            </p>
                            <div class="ad MIB_txtbl">
                                <img src="/Content/Image/transparent.gif" class="small_icon @{@(Model.CurUser.Sex == TypeConfigs.GetSexFemale ? "sicon_female" : "man")}" title="@{@(Model.CurUser.Sex == TypeConfigs.GetSexFemale ? "女" : "男")}">@{@Types.GetCityTypesFullName(Model.CurUser.Location);}
                            </div>
                            <p class="blog MIB_txtbl">
                                @{
                                    if (string.IsNullOrEmpty(Model.CurUser.Blog))
                                    {
                                    <a href="/Setup/BaseInfo">添加</a><em style="color: #707070;">自己的博客地址</em>
                                    }
                                    else
                                    {
                                    <a href="@Model.CurUser.Blog">@Model.CurUser.Blog</a>
                                    }
                                }
                            </p>
                            @{
                                if (!string.IsNullOrEmpty(Model.CurUser.Description))
                                {
                                <p class="MIB_txtbl">@Model.CurUser.Description</p>
                                }
                            }
                        </div>
                    </div>
                </div>
                <div id="profileFeed" class="MIB_mbloglist">
                    <div class="newFilter MIB_txtal newFilterMb0">
                        <div class="nfTagB nfTagOff">
                            <ul>
                                <li><a href="/@Model.CurUser.ID/Profile">微博</a></li>
                                <li><a href="/@Model.CurUser.ID/Info">我的资料</a></li>
                                <li class="current" style="margin-top: 5px;"><span>时光轴</span></li>
                            </ul>
                            <div class="clear">
                            </div>
                        </div>
                    </div>
                    <div class="history">
                        @{
                            if (Model.MiniBlogs != null)
                            {
                                var year = 0;
                                for (int i = 2013; i < 2014; i++)
                                {
                                     
                                       
                            <div class="history-date">
                                <ul id="ulDateContent">
                                    <h2 class="first">
                                        <a href="#nogo">@i 年</a>
                                    </h2>
                                    @foreach (Weibo.Entity.MiniBlog mm in Model.MiniBlogs.Where(para => para.CreateTime.Year == i))
                                    {
                                        
                                        <li class="green">
                                            <h3>
                                                @mm.CreateTime.ToString("MM.dd")<span>@mm.CreateTime.Year</span></h3>
                                             <dl>
                                                <dt>@mm.OriginalContent @*<span>升级极速内核到21.0</span>*@ </dt>
                                            </dl> </li> 
                                    }
                                    <div id="loadNoresult" style="display: none;" class="feed_lding MIB_txtbl">
                                        @* <em class="icon_lding"></em>此人很懒...*@</div>
                                </ul>
                            </div>
                                     
 
                                }
                            }
                        }
                    </div>
                    <div id="loadMB1" class="feed_lding MIB_txtbl">
                        <em class="icon_lding"></em>正在加载，请稍候...</div>
                    <div id="loadError" style="display: none;" class="feed_lding MIB_txtbl">
                        @* <em class="icon_lding"></em>加载失败，<a href="javascript:ajaxGetMiniBlog(null,true);">请重试</a>...*@</div>
                </div>
            </div>
        </div>
    </div>
</div>
